//
//  RegexParse.m
//  NBANews
//
//  Created by Liccon Chang on 11-1-28.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "RegexParse.h"


@implementation RegexParse

+(NSMutableArray*) RegexParseGamblingCompany:(NSString*) aHtmlText{
	NSString* selectExp = @"<select name=\\\"selectCompany\\\"[\\s\\S]+?select>";
	NSString* valueExp = @"<option value=\"[\\s\\S]+?option>";
	NSRange r;
	
	r = [aHtmlText rangeOfString:selectExp options:NSRegularExpressionSearch];
	if (r.location != NSNotFound) {
		NSString* select = [aHtmlText substringWithRange:r];
		for(NSString *match in [select componentsMatchedByRegex:valueExp]) {
			NSLog(@"111Phone number is %@", match);
		}
	}
	return nil;
}

+(RacesCard*) RegexParseRacesCard:(NSString*) aHtmlText{
	return nil;
}

+(TableData*) RegexParseStatistics:(NSString*) aHtmlText{
	return nil;
}

+(TableData*) RegexParseOdds:(NSString*) aHtmlText{
	return nil;
}

+(TableData*) RegexParseIntelligence:(NSString*) aHtmlText{
	return nil;
}

@end
